<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <link rel="stylesheet" type="text/css" href="../css/api.css"/>  
    <link rel="stylesheet" type="text/css" href="../css/alpenlicebe.css"/> 
</head>
<body>
	<div id="wrap"> 
		<header id="panel_header" style="height:20px;background-color: #f4f4f4 !important;display:none;" class="aui-bar aui-bar-nav aui-bar-pro">
			 
		</header>
		<div id="main"> 
		</div>  
	</div> 
</body>
<script src="../script/api.js"></script>
<script src="../script/zepto.min.js"></script>
<script src="../script/alpenlicebe.js"></script>
<script> 
    apiready = function () { 
        var infoID=api.pageParam.infoID; 
    	if(""==infoID||undefined==infoID||null==infoID){
    		api.alert({title:'系统提示',msg:"参数错误"});  
    	}
    	else{  
    		var y=0;
    		if('ios'==api.systemType){
      			$("#panel_header").show();
      			y=20;
   			} 
	        api.openFrame({
	            name: 'hot_TrackListInfoListDetailContent',
	            url: 'hot_TrackListInfoListDetailContent.html',
	            bounces:true,
	            rect: {
	                x: 0,
	                y: y,
	                w: 'auto',
	                h: api.winHeight-y-51
	            },
	            pageParam: {
					infoID: infoID  
			  	},
	            showProgress: 'true'
	        });
        }
        
        /*注册监听事件*/
		api.addEventListener({
		    name: 'Alpe_Event_NewsDetailContent'
		}, function(ret){ 
		    if(ret){
		    	if(ret.value.news.short_url==''||ret.value.news.short_url==undefined){
		    		goto_openBottomMenuFun(
				    	ret.value.news.title,
				    	ret.value.news.abstract_content,
				    	ret.value.news.detail_url,
				    	ret.value.news.is_collect,
				    	ret.value.news.is_pass,
				    	ret.value.news.pass_status,
				    	ret.value.news.deal_status,
				    	ret.value.news.is_deal,
				    	ret.value.news.forwarding_status);
		    	}else{
			    	goto_openBottomMenuFun(
				    	ret.value.news.title,
				    	ret.value.news.abstract_content,
				    	ret.value.news.short_url,
				    	ret.value.news.is_collect); 
				 }
		    }
		});
    } 
	/*底部操作菜单*/
	function goto_openBottomMenuFun(title,abstract_content,url,is_collect){
		var infoID=api.pageParam.infoID;
		var hotID=api.pageParam.hotID;
		if(''==infoID||undefined==infoID||null==infoID){
    		api.alert({title:'系统提示',msg:'参数错误'});
			return;
    	} 
	    var h_height = api.frameHeight - 51;    
	    api.openFrame ({
            name: 'hot_yq_menuBottom',
            url: './hot_yq_menuBottom.html',
            rect:{
				x:0,
				y:h_height,
				w:'auto',
				h:51,
			},			
		    pageParam: {infoID:infoID,
		    		title:title,abstract_content:abstract_content,url:url,is_collect:is_collect,
		    		hotID:hotID},
		    delay: 300,			 
		    bounces: false,			 
		    scaleEnabled:false,
		    delay:200  
		});
	}
</script> 
</html>